package windowsdao;

import java.awt.Image;

import javax.swing.ImageIcon;

public class ImageSize {
	
	
	
	public ImageIcon getImageIcon(String path) {
		Image image=new ImageIcon("C:\\Users\\Administrator\\Desktop\\setimage\\png\\19.png").getImage();
		ImageIcon icon=new ImageIcon(this.getClass().getResource(path));
		icon.setImage(image.getScaledInstance(50, 50, Image.SCALE_DEFAULT));
		
		return icon;
		
	}

}
